package model.service;

import java.util.HashMap;

import model.Snippet;

public abstract class ServiceBehaviour {
	
	public abstract HashMap<String, Snippet> translateResponse(String response) throws Exception;
	
	/**
	 * Creates a 2D Snippet from retreived 3D data.
	 * @param id The ID of the Snippet
	 * @param x The X worldCoordinate
	 * @param y The Y worldCoordinate, where 0 is the ground
	 * @param z The Z worldCoordinate
	 * @param width The absolute width in cm
	 * @param height The absolute height in cm
	 * @param information The information to display. Currently only true and false
	 * @param displayType Not yey implemented.
	 * @return A new 2D snippet with coordinates in pixels
	 */
	protected Snippet createSnippet(String id, int x, int y, int z, int width, int height, boolean information, int displayType)
	{
		return Pixelator.convertSnippet(id,x,y,z,width,height,information,displayType);
	}

}
